﻿<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserManage, App_Web_usermanage.aspx.fdf7a39c" %>
<%@ Register assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>upex&nbsp;-&nbsp;用户注册</title>
    <link href="../css/main-admin.css" rel="stylesheet" type="text/css" />

    <script src="../Jscript/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../Jscript/page.js" type="text/javascript"></script>

</head>
<body>
    <form id="form2" runat="server">
    <asp:ScriptManager ID="s1" runat="server">
    </asp:ScriptManager>
    <div class="title">
        用户管理
    </div>
    <div style="color: #636; margin-bottom: 25px;">
        账号<asp:TextBox ID="acid" runat="server" Width="80px"></asp:TextBox>
        登录名<asp:TextBox ID="loginnametxt" runat="server" Width="80px"></asp:TextBox>
        姓名<asp:TextBox ID="realnametxt" runat="server" Width="80px"></asp:TextBox>
        电话<asp:TextBox ID="teltxt" runat="server"></asp:TextBox>
        销售人员<asp:DropDownList ID="sele" runat="server">
        </asp:DropDownList>
        <asp:CheckBox ID="waitck" runat="server"  Text="等待审核客户" />
        &nbsp;&nbsp;&nbsp;
      
        <asp:ImageButton ImageAlign="AbsMiddle" ImageUrl="~/img/btn-search.gif" ID="searchbtn"
            Height="25" Width="68" runat="server" Text="搜索" OnClick="searchbtn_Click" />
    </div>
    <div class="trans-search-title" style="font-weight: bold">
    
        <div class="trans-search-no" style="width: 130px">
               &nbsp;账户</div>
        <div class="trans-search-status" style="width: 100px">
            用户名</div>
        <div class="trans-search-sender" style="width: 90px">
            姓名</div>
        <div class="trans-search-rec" style="width: 150px">
            电邮</div>
        <div class="trans-search-case" style="width: 150px">
            电话</div>
        <div class="trans-search-wt" style="width: 80px">
            销售人员归属</div>
        <div class="trans-search-ref" style="width: 80px">
            状态</div>
        <div class="trans-search-type" style="width: 80px">
            删除</div>
    </div>
    <asp:Repeater ID="userlist" runat="server">
        <ItemTemplate>
            <%# ((Container.ItemIndex + 1) % 2) == 0 ? "<div    class='trans-search-line result-bg'>" : "<div    class='trans-search-line'>"%>
  
            <div class="trans-search-no mtop3" style="width: 130px">
               &nbsp; <%#Eval("AccountNo").ToString() == "" ? "<a style='color:#56325a' href=' UserCartEdit.aspx?Uname=" + Eval("LoginName") + "'>审核发卡</a>" : "<a style='color:#09F' href='UserCalulate.aspx?name=" + Eval("TrueName") + "&ANo=" + Eval("AccountNo") + "&id=" + Eval("ID") + "'>" + Eval("AccountNo").ToString() + "</a>"%>
            </div>
            <div class="trans-search-status mtop3" style="width: 100px">
                <%#Eval("LoginName")%></div>
            <div class="trans-search-sender mtop3" style="width: 90px">
                <%#Eval("TrueName")%></div>
            <div class="trans-search-rec mtop3" style="width: 150px">
                <%# Ysb.Components.StrHelper.GetSubString(Eval("Email").ToString(),22)%></div>
            <div class="trans-search-case mtop3" style="width: 150px">
                <%#Eval("Tel")%></div>
            <div class="trans-search-ref mtop3" style="width: 80px">
                <%# Eval("UserType").ToString()=="0"?"": new BLL.PublicSqlService().GetWords("Tb_SalesUer","Name","ID="+Eval("UserType").ToString()) %>
            </div>
            <div class="trans-search-wt mtop3" style="width: 80px; color: Green">
                <%#  Convert.ToBoolean(Eval("UserState").ToString()=="1")?"正常":"<span style='color:red'>锁定</span>" %></div>
            <div class="trans-search-ref mtop3" style="width: 80px">
                &nbsp;<img src="../images/icon-del.png" width="16" onclick="ToDel('user','<%#Eval("ID")%>','')"
                    height="16" /></div>
            </div> </div>
        </ItemTemplate>
    </asp:Repeater>
    <div  style="text-align:center; padding-top:10px">
   
    <webdiyer:AspNetPager ID="NewsPage" runat="server" AlwaysShow="True" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
        OnPageChanged="NewsPage_PageChanged" PageIndexBoxType="TextBox" ShowPageIndexBox="Always"
        SubmitButtonText="" TextAfterPageIndexBox="" TextBeforePageIndexBox="跳页" Width="800px"
        FirstPageText="&lt;img src=&quot;../img/btn-first.jpg&quot; width=&quot;46&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
        LastPageText="&lt;img src=&quot;../img/btn-last.jpg&quot; width=&quot;46&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
        NextPageText="&lt;img src=&quot;../img/btn-next.jpg&quot; width=&quot;32&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
        PrevPageText="&lt;img src=&quot;../img/btn-prev.jpg&quot; width=&quot;32&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
        SubmitButtonClass="showsb" PageIndexBoxClass="pageindexbox" PageSize="20">
    </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
